//输入秒数，注意使用long或long long存储，转换为日、时、分、秒并显示

#include<iostream>

void ShowTime(int second);

int main()
{
	long int a;
	std::cout << "Enter the number of seconds:";
	std::cin >> a;
	ShowTime(a);
	return 0;
}

void ShowTime(int second)
{
	int days = second / 86400;
	int a = second % 86400;
	int hours = a / 3600;
	int b = a % 3600;
	int minutes = b / 60;
	int seconds = b % 60;
	std::cout << second << "seconds = " << days << " days, "
		<< hours << " hours, " << minutes << " minutes, "
		<< seconds << " seconds." << std::endl;
}